package com.zjsd.sqeybusiness.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zjsd.sqeybusiness.mapper.AppealdetailMapper;
import com.zjsd.sqeybusiness.domain.Appealdetail;
import com.zjsd.sqeybusiness.service.IAppealdetailService;

/**
 * 申诉回复明细Service业务层处理
 * 
 * @author Zheng
 * @date 2025-03-11
 */
@Service
public class AppealdetailServiceImpl implements IAppealdetailService 
{
    @Autowired
    private AppealdetailMapper appealdetailMapper;

    /**
     * 查询申诉回复明细
     * 
     * @param detailid 申诉回复明细ID
     * @return 申诉回复明细
     */
    @Override
    public Appealdetail selectAppealdetailById(Long detailid)
    {
        return appealdetailMapper.selectAppealdetailById(detailid);
    }

    /**
     * 查询申诉回复明细列表
     * 
     * @param appealdetail 申诉回复明细
     * @return 申诉回复明细
     */
    @Override
    public List<Appealdetail> selectAppealdetailList(Appealdetail appealdetail)
    {
        return appealdetailMapper.selectAppealdetailList(appealdetail);
    }

    /**
     * 新增申诉回复明细
     * 
     * @param appealdetail 申诉回复明细
     * @return 结果
     */
    @Override
    public int insertAppealdetail(Appealdetail appealdetail)
    {
        return appealdetailMapper.insertAppealdetail(appealdetail);
    }

    /**
     * 修改申诉回复明细
     * 
     * @param appealdetail 申诉回复明细
     * @return 结果
     */
    @Override
    public int updateAppealdetail(Appealdetail appealdetail)
    {
        return appealdetailMapper.updateAppealdetail(appealdetail);
    }

    /**
     * 批量删除申诉回复明细
     * 
     * @param detailids 需要删除的申诉回复明细ID
     * @return 结果
     */
    @Override
    public int deleteAppealdetailByIds(Long[] detailids)
    {
        return appealdetailMapper.deleteAppealdetailByIds(detailids);
    }

    /**
     * 删除申诉回复明细信息
     * 
     * @param detailid 申诉回复明细ID
     * @return 结果
     */
    @Override
    public int deleteAppealdetailById(Long detailid)
    {
        return appealdetailMapper.deleteAppealdetailById(detailid);
    }
}
